# Author: Lovy
# File : addBrandPage
# Time : 2023-03-23 16:27
from common.basePage import BasePage


class AddBrandPage(BasePage):

    def add_brand(self, brandname, brandstory):
        """添加品牌"""
        self.input_text(self.brand_name_input, brandname)
        self.input_text(self.brand_first_char, brandname[0])
        self.input_text(self.brand_story, brandstory)
        self.click_element(self.commit_btn)
        self.click_element(self.confirm_btn)
